package com.hotel.app.controller;


import com.hotel.app.service.SmsLogFeign;
import com.hotel.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/sms")
public class SmsLogController {

    @Autowired
    private SmsLogFeign smsLogFeign;

    @RequestMapping("/sendrcode")
    public R sendrcode(@RequestParam("phone") String phone){

        return smsLogFeign.sendrcode(phone);

    }


    @RequestMapping("/logincode")
    public R logincode(String phone){
        return smsLogFeign.logincode(phone);
    }


    @RequestMapping("/find")
    public R find(@RequestParam("phone") String phone){

        return smsLogFeign.find(phone);

    }


}
